﻿@if(WebSecurity.IsAuthenticated){

    <h3>
        Blog Admin Menu</h3>
    <ul>
        <li><a href="@Href("~/")">Blog Home</a></li>
        <li>&nbsp;</li>
        <li>Welcome @WebSecurity.CurrentUserName  </li>
        <li><a href="@Href("~/Actions/Public/Account/Logout")">Log out</a></li>
        <li>&nbsp;</li>
        <li><a href='@Href("~/Actions/Admin/ListAllCategories")'>List All categories</a></li>
        <li>&nbsp;</li>
        <li><a href='@Href("~/Actions/Admin/ListAllArticles")'>List All articles</a></li>
        <li><a href='@Href("~/Actions/Admin/AddArticle")'>Add new article</a></li>
        <li>&nbsp;</li>
        <li><a href='@Href("~/Actions/Admin/ListAllComments")'>List All Comments</a></li>  
        <li>&nbsp;</li>
        <li><a href='@Href("~/Actions/Admin/Account/EditUserSettings")'>User settings</a></li>
        <li>&nbsp;</li>
        <li><a href=''>Blog settings</a></li>
        
    </ul>
    
    }else{
        <!-- not authenticated for the admin menu -->
    }
